import Vue from 'vue'
import Router from 'vue-router'
import HomeContainer from '@/components/tabbar/HomeContainer'
import MemberContainer from '@/components/tabbar/MemberContainer'
import ShopCarContainer from '@/components/tabbar/ShopCarContainer'
import SearchContainer from '@/components/tabbar/SearchContainer'
import NewsList from '@/components/news/NewsList'
import NewsInfo from '@/components/news/newsInfo'
import Photolist from '@/components/photos/photolist'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path:"/",
      redirect:'/home'
    },
    {
      path: '/home',
      name: 'home',
      component: HomeContainer
    }, {
      path: '/member',
      name:'member',
      component:MemberContainer
    }, {
      path: '/shopcar',
      name:'shopcar',
      component:ShopCarContainer
    }, {
      path: '/search',
      name:'search',
      component:SearchContainer
    },{
      path: '/home/newslist',
      name: 'news',
      component: NewsList
    },{
      path:'/home/NewsInfo/:id',
      name:'NewsInfo',
      component:NewsInfo
    },{
      path:'/home/photolist',
      naem:'Photolist',
      component:Photolist
    }
  ],
  linkActiveClass: 'mui-active'
})
